﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="Site.master" CodeBehind="RailwayDBForm.aspx.cs" Inherits="DigDes.DSchool.SUPS.Web.UI.WebForm1" %>

<asp:Content ID="Cargo" ContentPlaceHolderID="Main" runat="Server">
        <asp:GridView 
            ID="GridView1" 
            runat="server" 
            AllowPaging="true"
            AutoGenerateColumns="False" 
            DataSourceID="RailwayDB_ODS" 
            BackColor="White" 
            BorderColor="#336666" 
            BorderStyle="Double" 
            BorderWidth="3px" 
            CellPadding="4" 
            GridLines="Horizontal">
            <Columns>
                <asp:BoundField DataField="Cargo_ID" HeaderText="Cargo_ID" SortExpression="Cargo_ID" />
                <asp:BoundField DataField="WagonNumber" HeaderText="WagonNumber" SortExpression="WagonNumber" />
                <asp:BoundField DataField="Weight" HeaderText="Weight" SortExpression="Weight" />
                <asp:BoundField DataField="Destination" HeaderText="Destination" SortExpression="Destination" />
                <asp:BoundField DataField="CargoCode" HeaderText="CargoCode" SortExpression="CargoCode" />
                <asp:BoundField DataField="CodeOfConsignee" HeaderText="CodeOfConsignee" SortExpression="CodeOfConsignee" />
                <asp:BoundField DataField="TypeOfWagon" HeaderText="TypeOfWagon" SortExpression="TypeOfWagon" />
                <asp:BoundField DataField="FirstStation" HeaderText="FirstStation" SortExpression="FirstStation" />
                <asp:BoundField DataField="CodeOfOperation" HeaderText="CodeOfOperation" SortExpression="CodeOfOperation" />
                <asp:BoundField DataField="DateOfOperation" HeaderText="DateOfOperation" SortExpression="DateOfOperation" />
                <asp:BoundField DataField="YearOfOperation" HeaderText="YearOfOperation" SortExpression="YearOfOperation" />
                <asp:BoundField DataField="TimeOfOperation" HeaderText="TimeOfOperation" SortExpression="TimeOfOperation" />
                <asp:BoundField DataField="StationAchievementsOperations" HeaderText="StationAchievementsOperations" SortExpression="StationAchievementsOperations" />
                <asp:BoundField DataField="WayOfDelivery" HeaderText="WayOfDelivery" SortExpression="WayOfDelivery" />
                <asp:BoundField DataField="WayOfReception" HeaderText="WayOfReception" SortExpression="WayOfReception" />
                <asp:BoundField DataField="IndexOfTrain" HeaderText="IndexOfTrain" SortExpression="IndexOfTrain" />
                <asp:BoundField DataField="NumberOfTrain" HeaderText="NumberOfTrain" SortExpression="NumberOfTrain" />
            </Columns>
            <FooterStyle BackColor="White" ForeColor="#333333" />
            <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="White" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F7F7F7" />
            <SortedAscendingHeaderStyle BackColor="#487575" />
            <SortedDescendingCellStyle BackColor="#E5E5E5" />
            <SortedDescendingHeaderStyle BackColor="#275353" />
        </asp:GridView>
        <asp:ObjectDataSource 
            ID="RailwayDB_ODS" 
            runat="server" 
            OldValuesParameterFormatString="original_{0}" 
            SelectMethod="GetTable" 
            SelectCountMethod="CountRailwayDB"
            TypeName="DigDes.DSchool.SUPS.DataAccess.Database.DataRdr_RailwayDB">
            <SelectParameters>
                <asp:Parameter Name="startRowIndex" Type="Int32" />
                <asp:Parameter Name="maximumRows" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
</asp:Content>
